#include <ui_centralwindow.h>
#include <centralwindow.h>

CentralWindow::CentralWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::CentralWindow)
{
    ui->setupUi(this);
}

CentralWindow::~CentralWindow()
{
    delete ui;
}

void CentralWindow::changeEvent(QEvent *e)
{
    QMainWindow::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

QHBoxLayout *CentralWindow::GetLayout()
{ 
	return ui->horizontalLayout; 
}